<template>
	<view class="title-box">
		<view class="title-main">
			<text class="title-left">{{title}}</text>
			<view class="title-right">
				<text>{{describe}}</text>
				<text @click="goCate">更多</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "floor-title",
		props: {
			title: {
				type: String,
				require: true,
				default: '私人订制'
			},
			describe: String
		},
		data() {
			return {

			};
		},
		methods: {
			goCate() {
				uni.switchTab({
					url: '/pages/cate/cate'
				})
			}
		}
	}
</script>

<style lang="scss">
	.title-box {
		position: relative;
		box-sizing: border-box;
		height: 110rpx;
		width: 100%;
		padding: 30rpx 30rpx;

		&:before {
			content: '';
			position: absolute;
			top: 30rpx;
			left: 10rpx;
			width: 14rpx;
			height: 50rpx;
			background-color: $uni-error;
		}

		.title-main {
			display: flex;

			.title-left {
				padding: 0 15rpx;
				font-size: 40rpx;
				font-weight: bold;
			}

			.title-right {
				flex: 1;
				display: flex;
				justify-content: space-between;
				padding-top: 6rpx;
				color: #777;
			}
		}
	}
</style>
